package com.touringapp.android.activity;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5616689924643123634L;
	private String id;
	private String name;

	public static User fromJSON(JSONObject json) throws JSONException {
		return new User(json.getString("id"), json.getString("name"));
	}
	public User(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}
}
